//
//  MHUserModel.h
//  M-Saler
//
//  Created by Teresa on 2020/5/25.
//  Copyright © 2020 Teresa. All rights reserved.
//

#import "JsonBaseObject.h"

NS_ASSUME_NONNULL_BEGIN

@interface MHUserModel : JsonBaseObject
/*
 "id": 3,
 "shop_id": 4,
 "shop_sn": 7040,
 "name": "jiangxiao",
 "telphone": "666777888",
 "region": "",
 "royalty_ratio": 5,
 "wages": 0,
 "last_order_time": null,
 "create_time": 1587118786,
 "code": null,
 "is_use": 0,
 "authentication": "P790lbw3UEGdpabbL/82PNpk5L/7WN4YPq0ZteEXyk41ick0P+szz5WkQqhh6hHw"
 */

CopyStringProperty theID; //id
CopyStringProperty shop_id;
CopyStringProperty shop_sn;
CopyStringProperty name;
CopyStringProperty telphone;
CopyStringProperty region;
CopyStringProperty royalty_ratio;
CopyStringProperty wages;
CopyStringProperty last_order_time;
CopyStringProperty create_time;
CopyStringProperty code;
CopyStringProperty is_use;
CopyStringProperty authentication;


+ (MHUserModel *)userModel;
- (BOOL)didLogin;
- (void)save;
+ (void)logout;
//+ (void)syncUserInfo;

@end

NS_ASSUME_NONNULL_END
